package com.helen.springcloud.controller;

import com.helen.springcloud.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author yanghl
 * @Description:
 * @date 2022/8/8 17:23
 */
@RestController
public class SendMessageController {
    @Resource
    private IMessageProvider iMessageProvider;

    @GetMapping("sendMessage")
    public String sendMessage(){
        return iMessageProvider.send();
    }
}
